import axios from 'axios';
export default {
  async fetchAllFeedbacks() {
    const response = await axios.get('http://localhost:8080/api/feedbacks/all');
    return response.data;
  },
  async deleteFeedback(fid) {
    await axios.delete(`http://localhost:8080/api/feedbacks/${fid}`);
  },
  async submitFeedback(feedback) {
    const response = await axios.post('http://localhost:8080/api/feedbacks', feedback);
    return response;
  }
}
